﻿namespace BooDoo

import System
import System.Collections.Generic
import Boo.Lang.Useful.CommandLine

class BooDooCommandLine(AbstractCommandLine):
	[Option("BooDooCommandLine.InputFile", ShortForm:"i")]
	[property(InputFile)]
	private inputFile = ResourceManager.Instance.GetString("BooDooCommandLine.InputFile.Default")
	
	[Argument("BooDooCommandLine.Target")]
	Target as ICollection of String:
		get:
			return target
	private target = List[of String]()
	
	override protected def GetOptionDescription(option as OptionAttribute):
		default = ResourceManager.Instance.GetString(option.Description + ".Default")
		description = ResourceManager.Instance.GetString(option.Description + ".Description")
		if default is null or default.Length == 0:
			return description
		else:
			return description + " " + ResourceManager.Instance.Format("BooDooCommandLine.DefaultText", default)
